package com.taplinker.client.im.rpc.response;

import com.taplinker.client.im.domain.ImDataCenter;
import com.taplinker.client.im.rpc.body.Cmd1004Rep;
import com.taplinker.core.rpc.Result;
import com.taplinker.core.util.json.JsonUtil;

public class Cmd1003 implements ImResponse{

	@Override
	public void yes(Result result) {
		Cmd1004Rep value = JsonUtil.jsonToObject(result.object.toString(), Cmd1004Rep.class);
		
		ImDataCenter.getInstance().removeConversationByIdFromPub(value.getConversationId());
	}

	@Override
	public String getCommand() {
		return "1003";
	}
	
}
